#pragma once

class CEX Mutex
{

	pthread_mutexattr_t _attr;

protected:
	pthread_mutex_t _mtx;

public:

	Mutex();
	~Mutex();

	void lock();
	bool tryLock();
	void unlock();
};

